package user;

import dao.Jdbcuserdao;
import dao.Userdao;



public class CheckmailAction {
	private String email;
	private boolean ok;
	public String getEmail() {
		return email;
	}
	public void setEmail(String email) {
		this.email = email;
	}
	

	public boolean isOk() {
		return ok;
	}
	public void setOk(boolean ok) {
		this.ok = ok;
	}
	public String execute() throws Exception {
		Userdao Udao = new Jdbcuserdao();
		System.out.println("mail");
		ok=Udao.check(email);
		if(ok)
		{
			return "success";
		}
		else
		{
			return "fail";
		}
	}
}
